.POSIX: ;
include config.mk

BINNAME = rl
OBJS    = src/main.o src/util.o

all: bin/${BINNAME}

.c.o:
	${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@

bin/${BINNAME}: ${OBJS}
	mkdir -p bin/
	${CC} ${LDFLAGS} ${CFLAGS} ${OBJS} -o $@

clean:
	rm -f src/*.o
	rm -f bin/${BINNAME}

fresh: clean all

.PHONY: all clean fresh

